package com.hoshiibuy.sm.monitor.publisher;

import com.netflix.hystrix.strategy.HystrixPlugins;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 指标发布器配置类，用于初始化发布器
 */
@Configuration
public class HoshiibuyHystrixMetricsPublisherConfigration {
    @Bean
    public HoshiibuyHystrixMetricsPublisher gethoshiibuyHystrixMetricsPublisher(){
        HoshiibuyHystrixMetricsPublisher publisher = new HoshiibuyHystrixMetricsPublisher();
//        HystrixPlugins.getInstance().registerMetricsPublisher(publisher);
        return publisher;
    }
}
